package Manger.FunctionPkg;

import javax.swing.*;

public class AppButton {
    public String name;
    public String path;
    public AppButton(String name,String path){
        this.name = name;
        this.path = path;
    }
    public JButton AppEnter(){
        ImageIcon imageIcon = new ImageIcon(path);
        JButton btn = new JButton(name,imageIcon);
        btn.setHorizontalTextPosition(SwingConstants.CENTER);
        btn.setVerticalTextPosition(SwingConstants.BOTTOM);
        return btn;
    }
}
